home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1995 September (Japanese)
/
CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso
/
disc2
/
nt
/
source.exe
/
POSIX
/
LS
/
BSTAT.C
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-10-30
|
445 b
|
28 lines
#include <sys/types.h>
#include <sys/stat.h>
/*
* Lstat: Posix Implementation DF_AJ
*/
int bstat (const char *path, struct stat *buf)
{
register int result;
#if 0
puts("in lstat");
#endif
result = stat(path, buf);
#if 0
printf("mode %lo\n", (unsigned long) buf->st_mode);
#endif
if ( S_ISDIR(buf->st_mode) ) {
#if 0
puts ("is dir");
#endif
if ( !buf->st_size )
buf->st_size = 16000;
}
return result;
}